<script setup>
import {onMounted, ref} from "vue";

const userId = ref(null);

onMounted(async () => {
    // 获取用户id
    const userInfo = localStorage.getItem('userInfo');
    if (userInfo) {
        const parsedUserInfo = JSON.parse(userInfo);
        userId.value = parsedUserInfo.user_id;
        console.log('userId:', userId.value);
    } else {
        console.log('userInfo 不存在');
    }

    // 发送请求获取历史维修记录

})
</script>

<template>

</template>

<style scoped>

</style>